<include file="Public:head" title='源码详情' />
<script src="__PUBLIC__/js/other/validate.js"></script>
<script>
    $(function() {
        $.getScript("__PUBLIC__/js/plugins/kind2/kindeditor-min.js", function() {
            KindEditor.basePath = '__PUBLIC__/js/plugins/kind2/';
            KindEditor.create('textarea[id="details"]');
        });
    })

</script>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('Source/lists')}">源码管理</a></li>
                    <li class="active">源码列表</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <h3 class="header smaller lighter blue">源码{$Think.get.id|getPageType} <if condition="$s_admin_uid eq 1">{$detail.uid}</if></h3>
                                <form id="form" enctype="multipart/form-data" method="POST" action="{:U('Source/detail_post')}" onsubmit="return checkJsForm()" data-id="{$detail.id}">
                                    <div class="caption">
                                        <table class="table table_detail">
                                               <tr>
                                                <td class="td_left">下载用户</td>
                                                <td>
                                                    <foreach name="downloads" item="row2">
                                                    <a href="{:U('User/detail',array('id'=>$row2['uid']))}" style='margin-right:8px' target="_blank">{$row2.uid|getUserName} ({$row2.addtime|date="Y-m-d H:i",###}：{$row2.points} <if condition="$row.edittime gt 0 && $row['edittime'] neq $row['addtime']">{$row2.edittime|date="Y-m-d H:i",###}</if>)</a><br>
                                                </foreach>
                                            </td>
                                            </tr>
                                             
                                            <tr>
                                                <td class="td_left">标题</td>
                                                <td>
                                                    <input type="text" value="{$detail.name}" name="name" id="name" autocomplete="off"/>
                                                    <span class="tip">本站已有的素材，不能审核通过</span>  

                                            <if condition="$detail.id gt 0"><a href="http://www.sucaihuo.com/source/{$detail.id}.html" target="_blank">详情页</a>
                                                <a href="{$detail.demo_url}" target="_blank">演示页</a>
                                            </if>
                                            </td>
                                            </tr>
                                             <tr>
                                                <td class="td_left">压缩包大小</td>
                                                <td>
                                                    <input type="text" value="{$detail.zip_size}" name="zip_size" id="zip_size" autocomplete="off"/> M
                                            </td>
                                            </tr>
                                             <tr>
                                                <td class="td_left">安装费</td>
                                                <td>
                                                    <input type="text" value="{$detail.money_install}" name="money_install" id="money_install" autocomplete="off"/> 元
                                            </td>
                                            </tr>
                                             <tr>
                                                <td class="td_left">源文件</td>
                                                <td>
                                                   <label>
                                                        <input class="ace" type="radio"  name="is_kaiyuan" value='0' {$detail.is_kaiyuan|getEqual=###,0,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 完全开源</span>
                                                    </label>
                                                    <label>
                                                        <input class="ace" type="radio"  name="is_kaiyuan" value='1' {$detail.is_kaiyuan|getEqual=###,1,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 部分加密</span>
                                                    </label>
                                            </td>
                                            </tr>
                                             <tr>
                                                <td class="td_left">是否授权</td>
                                                <td>
                                                   <label>
                                                        <input class="ace" type="radio"  name="is_shouquan" value='0' {$detail.is_shouquan|getEqual=###,0,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 免授权</span>
                                                    </label>
                                                    <label>
                                                        <input class="ace" type="radio"  name="is_shouquan" value='1' {$detail.is_shouquan|getEqual=###,1,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 需要授权</span>
                                                    </label>
                                            </td>
                                            </tr>
                                             <tr>
                                                <td class="td_left">语言</td>
                                                <td>
                                                   <label>
                                                        <input class="ace" type="radio"  name="language" value='0' {$detail.language|getEqual=###,0,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> PHP</span>
                                                    </label>
                                                    <label>
                                                        <input class="ace" type="radio"  name="language" value='1' {$detail.language|getEqual=###,1,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> java</span>
                                                    </label>
                                                    <label>
                                                        <input class="ace" type="radio"  name="language" value='2' {$detail.language|getEqual=###,2,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> .net</span>
                                                    </label>
                                            </td>
                                            </tr>
                                            


                                            <tr class="js_cat">
                                                <td class="td_left">类别</td>
                                                <td>
                                            <foreach name="modals_cat" item="row">
                                                <label class='label_width'>
                                                    <input type='checkbox' value='{$row.id}' name='cat_id[]' class="cat_id" autocomplete="off" {$detail.cat_id|getChecked=###,$row[id]}>
                                                    <b>{$row.name}</b>
                                                </label>
                                            </foreach>
                                            </td>




                                            </tr>

                                            <tr id="tr_cat_sub"> </tr>
                                            <tr id="tr_tags"></tr>
                                            <tr>
                                                <td class="td_left">行业</td>
                                                <td>
                                            <foreach name="modals_color" item="row">
                                                <label class='label_width'>
                                                    <input type='checkbox' value='{$row.id}' name='modal_color_id[]' {$detail.color_id|getChecked=###,$row['id']} autocomplete="off">
                                                    {$row.name}
                                                </label>
                                            </foreach>
                                            </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">布局</td>
                                                <td>
                                            <foreach name="modals_lay" item="row">
                                                <label class='label_width'>
                                                    <input type='checkbox' value='{$row.id}' name='modal_lay_id[]' {$detail.lay_id|getChecked=###,$row['id']} autocomplete="off">
                                                    {$row.name}
                                                </label>
                                            </foreach>
                                            </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">开发程序</td>
                                                <td>
                                            <foreach name="modals_development" item="row">
                                                <label class='label_width'>
                                                    <input type='radio' value='{$row.id}' name='modal_development_id' {$detail.development_id|getEqual=###,$row['id'],'checked'} autocomplete="off">
                                                    {$row.name}
                                                </label>
                                            </foreach>
                                            </td>
                                            </tr>


                                            <tr>
                                                <td class="td_left">上传封面图</td>
                                                <td>
                                                    <a id="big_img_area">
                                                        <if condition="$detail.logo_big neq ''">
                                                            <a class="fancybox_img" title="{$detail.name}" href="__APP__/{$detail.logo_big}">
                                                                <img src="__APP__/{$detail.logo_big}" alt="封面图" class="cover_img" id="cover_img"/>
                                                            </a>
                                                            <else/>
                                                            <img src="__PUBLIC__/images/cover.jpg" alt="封面图" class="cover_img" id="cover_img"/>
                                                        </if>
                                                    </a>
                                                    <a class="cover_btn" id="cover_btn_big"><span>+</span></a>
                                                    <span class="tip" style="margin:30px 0 0;display: inline-block">建议760*980px的图片。宽高不限</span>  
                                                                               <a  href="{$id|getModalsLogo=###,'middle','source'}" target="_blank" rel="nofollow"><img src="{$id|getModalsLogo=###,'middle','source'}" alt="{$detail.name}"  /></a>
                                                </td>
                                            </tr>
                                            <!--<tr>
                                                                                            <td class="td_left">上传封面图</td>
                                                                                            <td>
                                                                                                <div class="image-editor" id="image-editor">
                                                                <a class='a-upload'>
                                                                <input type="file" class="cropit-image-input" />
                                                                <i class="layui-icon"></i>
                                                                上传图片
                                                                </a>
                                                                <div class="cropit-preview"><img src="" alt="{$detail.title}"/></div>
                                                                <div class="image_size_area" id="image_size_area">
                                                                    <div class="image-size-label">
                                                                        调整图片大小
                                                                    </div>
                                                                    <input type="range" class="cropit-image-zoom-input">
                                                                </div>
                                                            </div>
                                                                                            </td>
                                                                                        </tr>-->
                                      <tr>
    <td class="td_left">原创</td>
    <td class="clearfix">
        <div class="opt_radio"> 
            <input class="magic-radio"  type="radio" name="is_original"  id="is_original_1" {$detail.is_original|getEqual=###,0,'checked'} value="0" autocomplete='off' >
            <label for="is_original_1">否</label>
        </div>
        <div class="opt_radio">
            <input class="magic-radio" type="radio" name="is_original"  id="is_original_2" {$detail.is_original|getEqual=###,1,'checked'} value="1" autocomplete='off'>
            <label for="is_original_2">是</label>
        </div>

    </td>
</tr>

    <tr id="tr_download_jifen">
    <td class="td_left" id="points_title"> 下载{$detail.points_type|getPointsUnit}<span class="red">*</span></td>
    <td>
        <input type="text" value='{$detail.points}' name="points" id="points" autocomplete="off" style="width:80px" maxlength="6"/>
        <span class="tip" id="points_description"><if condition="$detail.points_type eq 0">适当的下载积分，赚取更多积分<else/>赚取火币可以”申请提现“</if>。</span>  
    </td>
</tr>


                                            <tr>
                                                <td class="td_left">来源<span class="red">*</span></td>
                                                <td>
                                                    <input type="text" value="{$detail.source}" placeholder="http://www.sucaihuo.com" name="source" autocomplete="off"/>
                                                    <span class="tip">链接地址如：“http://www.sucaihuo.com”</span>  
                                                </td>
                                            </tr>

                                            <tr>
                                                <td class="td_left">演示地址</td>
                                                <td>
                                                    <input type="text" value="{$detail.demo_url}" id="demo_url" name="demo_url" autocomplete="off"/>
                                                    短网址： <input type="text" value="" id="url_short" autocomplete="off"/>
                                                    <button class="btn btn-danger btn-xs ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" role="button" aria-disabled="false" onclick="getShortUrl('url_short', 'demo_url')">
                                                        <span class="ui-button-text">
                                                            PC短网址
                                                        </span>
                                                    </button>
                                                   
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">手机wap</td>
                                                <td>
                                                    <input type="text" value="{$detail.url_wap}" name="url_wap" id="url_wap" autocomplete="off"/>
                                                    短网址： <input type="text" value="" id="url_short_wap" autocomplete="off"/>
                                                    <button class="btn btn-danger btn-xs ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" role="button" aria-disabled="false" onclick="getShortUrl('url_short_wap', 'url_wap')">
                                                        <span class="ui-button-text">
                                                            WAP短网址
                                                        </span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">微信</td>
                                                <td>
                                                    <input type="text" value="{$detail.url_weixin}" name="url_weixin" id="url_weixin" autocomplete="off"/>
                                                    短网址： <input type="text" value="" id="url_short_weixin" autocomplete="off"/>
                                                    <button class="btn btn-danger btn-xs ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" role="button" aria-disabled="false" onclick="getShortUrl('url_short_weixin', 'url_weixin')">
                                                        <span class="ui-button-text">
                                                            微信短网址
                                                        </span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">演示图片</td>
                                                <td>
                                                    <a id="big_img_demo">
                                                        <img src="__PUBLIC__/images/cover.jpg" alt="封面图" class="cover_img" id="cover_demo"/>
                                                    </a>
                                                    <a class="cover_btn" id="cover_btn_demo"><span>+</span></a>
                                                    <span class="tip" style="margin:30px 0 0;display: inline-block">建议760*980px的图片。宽高不限</span>  {$detail.url_logo}
                                                    
                                                    <span id="url_logo_{$detail.id}"><a onclick="yes2('{$detail.id}', 'source', 'url_logo')"><if condition="$detail.url_logo eq 1">是<else/><span style="color:red">否</span></if></a></span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">url文字</td>
                                                <td>
                                                    <input type="text" value="{$detail.url_words}" name="url_words" id="url_words" autocomplete="off"/>
演示为官网的，因版本一直免费更新，可能和演示稍微不一样。下载源码以版本号为准
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">百度网盘链接</td>
                                                <td>
                                                    <input type="text" value="{$detail.wangpan_url}" name="wangpan_url" id="wangpan_url" autocomplete="off"/>
                                                    网盘链接： <input type="text" value="" id="wangpan_short" autocomplete="off"/>
                                                    <button class="btn btn-info btn-xs ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" role="button" aria-disabled="false" onclick="getWangpanUrl()">
                                                        <span class="ui-button-text">
                                                            生成网盘链接
                                                        </span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">百度网盘密码</td>
                                                <td>
                                                    <input type="text" value="" name="wangpan_pwd" id="wangpan_pwd" autocomplete="off"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">标签:</td>
                                                <td id="td_tags"> 
                                            <foreach name="tags" item="row">
                                                <input name="tag[]" type="text" class="common_txt tag" autocomplete="off" value="{$row}" maxlength="20"/>
                                            </foreach>
                                            <input name="tag[]" type="text" class="common_txt tag" autocomplete="off" value="" maxlength="20"/>
                                            <input name="tag[]" type="text" class="common_txt tag" autocomplete="off" value="" maxlength="20"/>
                                            <input name="tag[]" type="text" class="common_txt tag" autocomplete="off" value="" maxlength="20"/>
                                            <input name="tag[]" type="text" class="common_txt tag" autocomplete="off" value="" maxlength="20"/>
                                            </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="course">
                                        <h2><strong class="normal">教程</strong><span style="color:#999;font-size: 12px">可写网站风格、前后端截图、特色、用法、每个页面说明、功能模块介绍、注意点等等</span></h2>
                                        <table class="table table_detail" id="table_course">
                                            <tr>
                                                <td class="td_left"></td>
                                                <td>
                                                    <ul id="module_list">
                                                        <foreach name="jsons" item="row">
                                                            <li>
                                                                <div class="item_top clearfix">
                                                                    <div class="item_ico">{$key+1}</div>
                                                                    <div class="item_content"><textarea name="contents[]" autocomplete="off" onkeyup="checkCourseContent($(this))">{$row.content}</textarea></div>
                                                                    <div class="item_nav">
                                                                        <a class="move-btn bg"></a>
                                                                        <a class="delete-btn bg"></a>
                                                                        <a class="add-btn bg"></a>
                                                                        <a class="plupload_btn"></a>
                                                                        <ul class="js-upload-image-list upload-image-list clearfix" onclick="addWebuploadCurrent($(this))">
                                                                            <li class="fileinput-button js-add-image webuploader3-container" data-type="loading">
                                                                                <div class="webuploader3-pick">
                                                                                    <a class="fileinput-button-icon" href="javascript:;"></a>
                                                                                </div>
                                                                            </li>
                                                                        </ul>
                                                                        <div  class="cats_type clearfix">
                                                                            <a class="chose_type">{$row.type|getUploadsCatsType}</a>
                                                                            <a class="sub"  data-type=4>标题</a>
                                                                            <a class="sub"  data-type=6>代码</a>
                                                                            <a class="sub"  data-type=7>DIV</a>
                                                                            <a class="sub"  data-type=8>原样输出</a>
                                                                            <span class="arrow arrow-up"></span> 
                                                                            <input type="hidden" name="types[]" value="{$row.type}" autocomplete="off"/>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <ul class="course_imgs clearfix">
                                                                    <foreach name="row['pics']" item='row2'>
                                                                        <li class="thumb">
                                                                            <img src="{$Think.config.url_yanshi}/{$row2}" data-pic="{$row2}"/>
                                                                            <a class="media-rm-btn hide"></a>
                                                                        </li>
                                                                    </foreach>
                                                                </ul>
                                                            </li>
                                                        </foreach>
                                                    </ul>

                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">状态</td>
                                                <td>

                                                    <label>
                                                        <input class="ace" type="radio"  name="is_check" value='0' {$detail.is_check|getEqual=###,0,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 关闭</span>
                                                    </label>
                                                    <label>
                                                        <input class="ace" type="radio"  name="is_check" value='1' {$detail.is_check|getEqual=###,1,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 开启</span>
                                                    </label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">是否推荐</td>
                                                <td>

                                                    <label>
                                                        <input class="ace" type="radio"  name="is_recommend" value='0' {$detail.is_recommend|getEqual=###,0,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 否</span>
                                                    </label>
                                                    <label>
                                                        <input class="ace" type="radio"  name="is_recommend" value='1' {$detail.is_recommend|getEqual=###,1,'checked'} autocomplete='off'/>
                                                        <span class="lbl"> 是</span>
                                                    </label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">详情页开头</td>
                                                <td>
                                                    <textarea class="textarea" name="content_first" id="content_first" autocomplete="off">{$detail.content_first}</textarea>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">关键字(关键词2-3个即可，比如贷款超市源码,借贷平台源码，推荐2个)</td>
                                                <td>
                                                    <textarea class="textarea" name="keywords" id="keywords" autocomplete="off">{$detail.keywords}</textarea>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">描述(描述围绕关键词走)</td>
                                                <td>
                                                    <textarea class="textarea" name="description" id="description" autocomplete="off" style="height:300px">{$detail.description}</textarea>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">详细说明</td>
                                                <td>
                                                    <textarea class="textarea" name="details" id="details" autocomplete="off" style="height:300px">{$detail.details}</textarea>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">备注</td>
                                                <td>
                                                    <textarea class="textarea" name="remark" id="remark" autocomplete="off" style="height:300px">{$detail.remark}</textarea>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td class="td_left"></td>
                                                <td>

                                                    <input type='hidden' name='id' id="id" value='{$id}'/>
                                                    <input type='hidden'  id="utype" value='source'/>
                                                    <button class="btn btn-info btn-sm" type="submit">
                                                        <i class="icon-ok bigger-110 "></i>
                                                        保 存
                                                    </button>
                                                    <button class="btn btn-sm reset" type="button" onclick="goUrl(-1)">
                                                        <i class="icon-undo bigger-110"></i>
                                                        返 回
                                                    </button>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_left">
                                                
                                                <a href="https://www.baidu.com/s?wd=%E9%AB%98%E8%B4%A8%E9%87%8F%E7%9A%84seo%E6%96%87%E7%AB%A0%E6%80%8E%E4%B9%88%E5%86%99&rsv_spt=1&rsv_iqid=0xe227543a0010b0fd&issp=1&f=3&rsv_bp=1&rsv_idx=2&ie=utf-8&tn=baiduhome_pg&rsv_enter=1&rsv_sug3=4&rsv_sug1=5&rsv_sug7=100&rsv_sug2=0&prefixsug=seo%25E6%2596%2587%25E7%25AB%25A0%25E5%25A6%2582%25E4%25BD%2595&rsp=0&inputT=5165&rsv_sug4=5165" target="_blank">高质量文章如何写</a>
                                       
                                                </td>
                                                <td>         <p>提示：一定要了解发布的源码是干嘛的，否则用户更不知道了</p>
                                                     <p>site:www.sucaihuo.com 可查看自己的文章是否被收录</p>
                                                      <p><if condition="$detail.time_create gt 0">内容已填充时间：{$detail.time_create|date="Y-m-d H:i",###}</if></p>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <include file="Public:setting" />
    </div>
</div>

<include file="Public:foot" />
<div class="modal fade" id="modal_cat" data-id="0" data-modal="position"  tabindex="-1" role="dialog" aria-labelledby="modal_catLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" ></h4>
            </div>
            <div class="modal-body">
                名称：
                <input id="cat_name" type="text" class="common_txt" value="{$detail.ord}" maxlength="20" autocomplete="off"/>
            </div>
            <div class="modal-footer">
                <button class="btn btn-danger btn-xs ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="submit" role="button" aria-disabled="false" >
                    <span class="ui-button-text">
                        <i class="icon-trash bigger-110"></i>
                        确 定
                    </span>
                </button>
                <button class="btn btn-xs ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" role="button" aria-disabled="false" data-dismiss="modal">
                    <span class="ui-button-text">
                        <i class="icon-remove bigger-110"></i>
                        取 消
                    </span>
                </button>

            </div>
        </div>
    </div>
</div>


<include file="Public:foot" />
<include file="Uploads:plupload" />
<link rel="stylesheet" href="__PUBLIC__/css/uploads.css" type="text/css" /> 
<link href="__PUBLIC__/js/plugins/layui/css/layui.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="__PUBLIC__/js/plugins/layui/layui.all.js"></script>
<script src="__PUBLIC__/js/plugins/jquery.cropit.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/plugins/jquery.dragsort-0.5.2.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/plugins/textarea_autoheight.js"></script>
<script type="text/javascript" src="__APP__/other/js/uploads.js"></script>
<script type="text/javascript">
                                                        $(function() {
                                                            getTagAutocomplete();
                                                            $('.image-editor').cropit({'min_width': 350, 'min_height': 280, 'id': '{$id}'});
                                                            $(".js_cat").find(".cat_sub_id").click(function() {

                                                                var length_check = $(this).parents(".js_cat").find(".cat_sub_id:checked").length;
                                                                if (length_check > 0) {
                                                                    $(this).parents(".js_cat").find(".cat_id").prop("checked", true)
                                                                } else {
                                                                    $(this).parents(".js_cat").find(".cat_id").removeAttr("checked")
                                                                }
                                                            })
                                                        });
                                                        function getTagAutocomplete() {
                                                            $(".tag").autocomplete({
                                                                source: "__APP__/{$Think.MODULE_NAME}/Ajax/autocomplete/mtype/1",
                                                                minLength: 1
                                                            });
                                                        }

function yes2(id, table, field) {
    $.post(getUrl("Tian/Ajax/yes_url_logo"), {
        id: id,
        table: table,
        field: field
    }, function(data) {
        if (data == "是") {
            $('#' + field + '_' + id).html("<a onclick=yes2(" + id + ",'" + table + "','" + field + "')>" + data + "</a>");
        } else {
            $('#' + field + '_' + id).html("<a onclick=yes2(" + id + ",'" + table + "','" + field + "')><span style='color:red'>" + data + "</span></a>");
        }
    })
}


</script>



